package com.group.three.mapper.aftersale;

import com.group.three.entity.myOrder.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * * 售后情况 Mapper 接口
 */
@Mapper
public interface AfterSaleMapper {
    /**
     * *
     * @param serviceType 类型 "CANCEL,RETURN_GOODS,RETURN_MONEY,COMPLAIN"
     * @return
     */
    List<AfterSaleReason> selectAfterSaleReasons(String serviceType);
    //获取我的售后列表
    List<AfterSaleSearchParams> selectAfterSale(@Param("memberId") String memberId, @Param("keywords")String keywords, @Param("pageNumber")int pageNumber, @Param("pageSize")int pageSize);
    //取消我的售后
    int cancelAfterSale(@Param("afterSaleSn") String afterSaleSn);
    //售后详情
    AfterSaleSearchParams AfterSaleItem(@Param("sn") String sn);
    //售后日志
    List<AfterSaleLog> getAfterSaleLog(String sn);
    //获取售后页面信息
    AfterSaleApplyVO getAfterSaleInfo(String sn);
    //售后页面
    int saveAfterSale(@Param("afterSaleDTO")AfterSaleDTO afterSaleDTO);
}
